From: Giovanni Campagna Date: Thu, 6 Sep 2012 19:22:57 +0000 (+0200) Subject: Panel: don't animate session mode switches X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5904 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8c534163e1bd62a0fdf6cbaa54d75dea8d116f42;p=gnome-shell.git Panel: don't animate session mode switches It causes problems with extensions, and it's excessively distracting. https://bugzilla.gnome.org/show_bug.cgi?id=683526 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index c35bc39db..f05757357 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -965,7 +965,7 @@ const Panel = new Lang.Class({ Main.ctrlAltTabManager.addGroup(this.actor, _("Top Bar"), 'start-here-symbolic', { sortGroup: CtrlAltTab.SortGroup.TOP }); - Main.sessionMode.connect('updated', Lang.bind(this, this._sessionUpdated)); + Main.sessionMode.connect('updated', Lang.bind(this, this._updatePanel)); this._updatePanel(); }, @@ -1130,41 +1130,13 @@ const Panel = new Lang.Class({ } }, - _tweenAndUpdatePanel: function() { - this._closeIndicatorMenus(); - - Tweener.addTween(this, { - boxOpacity: 0, - time: Overview.ANIMATION_TIME / 2, - transition: 'easeOutQuad', - onCompleteScope: this, - onComplete: function() { - this._updatePanel(); - Tweener.addTween(this, { - boxOpacity: 255, - time: Overview.ANIMATION_TIME / 2, - transition: 'easeOutQuad' - }); - } - }); - }, - - _sessionUpdated: function() { - this._tweenAndUpdatePanel(); - }, - - _closeIndicatorMenus: function() { - for (let role in this.statusArea) { - let indicator = this.statusArea[role]; - indicator.menu.close(); - } - }, - _hideIndicators: function() { for (let role in PANEL_ITEM_IMPLEMENTATIONS) { let indicator = this.statusArea[role]; if (!indicator) continue; + if (indicator.menu) + indicator.menu.close(); indicator.container.hide(); } },